package cn.incast.Exception;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

public class Test01 {
	public static void main(String[] args) {
		File file=new File("e:\\a.txt");
		FileInputStream fis=null;
		try{
			fis=new FileInputStream(file);
			byte[] buf=new byte[1024];
			int length;
			while((length=fis.read(buf)) != -1){
				System.out.print(new String(buf, 0, length));
			}
			fis.close();
		}catch(IOException e){
			e.printStackTrace();
		}
	}
}
